package com.qdxwx.data.mapper.member;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.member.MemberType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * MemberType接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface MemberTypeMapper {

	/**
     * 修改MemberType
     * @param memberType 要修改的MemberType
     */
    int update(MemberType memberType);

    /**
     * 根据id获取单个MemberType对象
     * @param id 要查询的id
     * @return MemberType
     */
    MemberType selectById(int id);

    /**
     * 添加会员类型
     */
    int insert(MemberType memberType);

    List<MemberType> selectList(@Param("e") MemberType memberType, @Param("page") PageRequest page);

    List<MemberType> selectListByCourseId(int courseId);

    int count(@Param("e") MemberType memberType);

    int deleteByIds(String[] ids);

}